#!/bin/bash

HOME=/home/strlst/
DEST=/media/strlst
LOG=/tmp/mirror-home.log

rm -f "$LOG"
echo "########### copying ${HOME} (into ${DEST}) started @ $(date) ###########" | tee -a "$LOG"

mkdir -p "${DEST}"
rsync -ahvAE --exclude={'mpv-shot*','1mnt','2mnt','3mnt','backup','shvol','.local/share','.cache'} --delete --stats "$HOME" "$DEST" 2>&1 | tee -a "$LOG"

echo "########### mirroring home (into ${DEST}) completed @ $(date) ###########" | tee -a "$LOG"
notify-send -t 10000 " ### MIRRORING COMPLETE ###"
